<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MBTI 人格测试</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f8fafc;
            color: #1e293b;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* 顶部状态栏 */
        .status-bar {
            height: 44px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 18px;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        /* 主容器 */
        .container {
            max-width: 100%;
            margin: 0 auto;
            padding: 0;
            min-height: calc(100vh - 44px - 80px);
        }

        /* 内容区域 */
        .tab-content {
            padding: 20px;
            margin-bottom: 80px;
        }

        .tab-pane {
            display: none;
            animation: fadeIn 0.3s ease-in-out;
        }

        .tab-pane.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 卡片样式 */
        .card {
            background: white;
            border-radius: 20px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }

        /* 开始页面 */
        .start-container {
            text-align: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .start-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
            animation: float 20s linear infinite;
        }

        @keyframes float {
            0% { transform: translateY(0px) rotate(0deg); }
            100% { transform: translateY(-100px) rotate(360deg); }
        }

        .start-container h2 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 16px;
            position: relative;
            z-index: 1;
        }

        .start-container p {
            font-size: 16px;
            opacity: 0.9;
            margin-bottom: 32px;
            position: relative;
            z-index: 1;
            line-height: 1.6;
        }

        /* 按钮样式 */
        .nav-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }

        .start-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 16px 32px;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .start-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .nav-btn {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
            padding: 14px 24px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .nav-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        /* 测试页面 */
        .progress-container {
            background: white;
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            width: 0%;
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 4px;
        }

        .progress-text {
            text-align: center;
            margin-top: 12px;
            font-size: 14px;
            color: #64748b;
            font-weight: 500;
        }

        .question-container {
            display: none;
            background: white;
            border-radius: 20px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            animation: slideIn 0.3s ease-out;
        }

        .question-container.active {
            display: block;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateX(30px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .question {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 24px;
            color: #1e293b;
            line-height: 1.4;
        }

        .options {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .option {
            padding: 20px;
            border: 2px solid #e2e8f0;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: white;
            font-size: 16px;
            line-height: 1.5;
            position: relative;
            overflow: hidden;
        }

        .option::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .option:hover {
            border-color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
        }

        .option:hover::before {
            left: 100%;
        }

        .option.selected {
            border-color: #667eea;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
            color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
        }

        .next-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 20px;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .next-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
        }

        .next-btn:disabled {
            background: #cbd5e1;
            cursor: not-allowed;
            box-shadow: none;
        }

        /* 结果页面 */
        .result-container {
            text-align: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .result-container::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,0 61,35 100,35 69,57 80,92 50,70 20,92 31,57 0,35 39,35" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
            animation: float 25s linear infinite reverse;
        }

        .personality-type {
            font-size: 48px;
            font-weight: 800;
            margin: 24px 0;
            position: relative;
            z-index: 1;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .personality-title {
            font-size: 24px;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 16px;
            position: relative;
            z-index: 1;
        }

        .personality-description {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
            margin-bottom: 32px;
            position: relative;
            z-index: 1;
        }

        /* 人格类型网格 */
        .types-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .types-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 12px;
        }

        .types-header p {
            color: #64748b;
            font-size: 16px;
        }

        .personality-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin: 32px 0;
        }

        .personality-card {
            background: white;
            border-radius: 20px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .personality-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .personality-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            border-color: #e2e8f0;
        }

        .personality-card:hover::before {
            transform: scaleX(1);
        }

        .personality-card h3 {
            color: #667eea;
            margin-bottom: 12px;
            font-size: 20px;
            font-weight: 700;
        }

        .personality-card .title {
            color: #764ba2;
            font-weight: 600;
            margin-bottom: 12px;
            font-size: 16px;
        }

        .personality-card p {
            color: #64748b;
            line-height: 1.5;
            font-size: 14px;
        }

        /* 关于页面 */
        .about-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .about-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 12px;
        }

        .about-content {
            background: white;
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .about-content h3 {
            color: #667eea;
            margin: 24px 0 16px 0;
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .about-content h3:first-child {
            margin-top: 0;
        }

        .about-content p {
            margin-bottom: 16px;
            line-height: 1.6;
            color: #475569;
            font-size: 15px;
        }

        .about-content ul {
            margin: 16px 0;
            padding-left: 24px;
        }

        .about-content li {
            margin-bottom: 12px;
            line-height: 1.5;
            color: #475569;
            font-size: 15px;
        }

        /* 星座页面 */
        .zodiac-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .zodiac-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 12px;
        }

        .zodiac-header p {
            color: #64748b;
            font-size: 16px;
        }

        .coming-soon {
            text-align: center;
            padding: 40px 24px;
            background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
            border-radius: 20px;
            margin: 32px 0;
            border: 2px solid #e2e8f0;
        }

        .coming-soon .icon {
            font-size: 48px;
            margin-bottom: 24px;
            display: block;
        }

        .coming-soon h2 {
            color: #667eea;
            margin-bottom: 16px;
            font-size: 20px;
            font-weight: 600;
        }

        .coming-soon p {
            color: #64748b;
            line-height: 1.6;
            margin-bottom: 16px;
            font-size: 15px;
        }

        .coming-soon ul {
            text-align: left;
            margin: 20px 0;
            padding-left: 24px;
        }

        .coming-soon li {
            margin-bottom: 8px;
            color: #475569;
            font-size: 14px;
        }

        .zodiac-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 16px;
            margin: 32px 0;
        }

        .zodiac-card {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 20px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .zodiac-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .zodiac-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
            border-color: #cbd5e1;
        }

        .zodiac-card:hover::before {
            transform: scaleX(1);
        }

        .zodiac-card .icon {
            font-size: 32px;
            margin-bottom: 12px;
            display: block;
        }

        .zodiac-card h3 {
            color: #667eea;
            margin-bottom: 8px;
            font-size: 16px;
            font-weight: 600;
        }

        .zodiac-card .dates {
            color: #764ba2;
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .zodiac-card .description {
            color: #64748b;
            font-size: 12px;
            line-height: 1.4;
        }

        /* 个人中心 */
        .profile-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .profile-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 12px;
        }

        .profile-header p {
            color: #64748b;
            font-size: 16px;
        }

        .profile-section {
            margin-bottom: 32px;
        }

        